package com.aiyige.model.response;

import java.util.List;

/**
 * Created by zhuyakun on 2017/12/11.
 */

public class SearchResponse {
    private int code;
    private String message;
    private List<Data> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data {
        public static final int MAX_SAMPLE_NUM = 4;
        private int typeId;
        private String name;
        private boolean hasMore;
        private List<Sample> samples;

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public boolean isHasMore() {
            return hasMore;
        }

        public void setHasMore(boolean hasMore) {
            this.hasMore = hasMore;
        }

        public List<Sample> getSamples() {
            return samples;
        }

        public void setSamples(List<Sample> samples) {
            this.samples = samples;
        }
    }

    public static class Sample {

        private long id;
        private int type;
        private String cover;
        private String title;
        private String owner;
        private long ownerId;
        private long ownerLevel;
        private String ownerAvatar;
        private long categoryId;
        private long stages;
        private double originPrice;
        private long durationTotal;
        private String city;
        private String platform;
        private long sellCount;
        private String router;
        private double price;
        private int viewCount;

        public int getViewCount() {
            return viewCount;
        }

        public void setViewCount(int viewCount) {
            this.viewCount = viewCount;
        }

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getOwner() {
            return owner;
        }

        public void setOwner(String owner) {
            this.owner = owner;
        }

        public long getOwnerId() {
            return ownerId;
        }

        public void setOwnerId(long ownerId) {
            this.ownerId = ownerId;
        }

        public long getOwnerLevel() {
            return ownerLevel;
        }

        public void setOwnerLevel(long ownerLevel) {
            this.ownerLevel = ownerLevel;
        }

        public String getOwnerAvatar() {
            return ownerAvatar;
        }

        public void setOwnerAvatar(String ownerAvatar) {
            this.ownerAvatar = ownerAvatar;
        }

        public long getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(long categoryId) {
            this.categoryId = categoryId;
        }

        public long getStages() {
            return stages;
        }

        public void setStages(long stages) {
            this.stages = stages;
        }

        public double getOriginPrice() {
            return originPrice;
        }

        public void setOriginPrice(double originPrice) {
            this.originPrice = originPrice;
        }

        public long getDurationTotal() {
            return durationTotal;
        }

        public void setDurationTotal(long durationTotal) {
            this.durationTotal = durationTotal;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getPlatform() {
            return platform;
        }

        public void setPlatform(String platform) {
            this.platform = platform;
        }

        public long getSellCount() {
            return sellCount;
        }

        public void setSellCount(long sellCount) {
            this.sellCount = sellCount;
        }

        public String getRouter() {
            return router;
        }

        public void setRouter(String router) {
            this.router = router;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }
    }

}
